from django.conf import settings

# 上传图片大小限制
UPLOAD_IMAGE_SIZE = 2 * 1024 * 1024

# 验证码字体
FONT_CAPTCHA_PATH = settings.BASE_DIR / 'baykeadmin/common/fonts/ARIALI.TTF'

# 图片验证码长度
FONT_CAPTCHA_LENGTH = 4

# 邮箱验证码长度
EMAIL_CAPTCHA_LENGTH = 6

# 邮箱验证码有效时间
EMAIL_CAPTCHA_EXPIRED_TIME = 60 * 5

# 登录序列化器
LOGIN_SERIALIZER = "baykeadmin.api.system.serializers.BaykeSystemLoginSerializer"